#define _CRT_SECURE_NO_WARNINGS 1

#include<stdio.h>

void pai(int n, int z[]) {
    for (int i = 0; i < n - 1; i++) {
        for (int j = 0; j < n - 1 - i; j++) {
            if (z[j] > z[j + 1]) {
                int t = z[j];
                z[j] = z[j + 1];
                z[j + 1] = t;
            }
        }
    }
}
int main() {
    int n, m = 0;
    scanf("%d", &n);
    int a[500], b[500];
    for (int i = 0; i < n; i++) {
        scanf("%d", &a[i]);
    }
    int j = 0;
    for (int i = 0; i < n; i++) {
        if (a[i] % 2 == 1) {
            b[j] = a[i];
            m++;
            j++;
        }
    }
    pai(m, b);
    for (int i = 0; i < m; i++) {
        if (i != m - 1) {
            printf("%d,", b[i]);
        }
        else {
            printf("%d", b[i]);
        }
    }
    return 0;
}